home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
jazclib1.arc
/
JZFNDNXT.C
< prev
next >
Wrap
Text File
|
1986-05-16
|
1KB
|
37 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│ Title : jzfndnxt │
│ Purpose : find the next matching file from the disk transfer area specified│
│ in a previous call to jzfndfst │
│ Parms │
│ fdta - directory record defined in jzdirect.h │
│ │
│ i.e. error = jzfndnxt(&dir_record); │
│ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 │ │
└────────────────────────────────────────────────────────────────────────────┘
*/
#include <jaz.h>
#include <jzdirect.h>
jzfndnxt(fdta)
TDIR *fdta;
{
TREG wreg;
int wdtaofs,wdtaseg;
jzgetdta(&wdtaofs,&wdtaseg); /* save old dta address */
jzsetdta(fdta); /* set new address */
wreg.h.ah = 0x4f; /* find next function */
msdos(&wreg);
jzsetdta(wdtaofs); /* conditionalize later for large model */
if (wreg.x.flags & 0x0001 == 1) return(wreg.x.ax);
else return(0); /* return 0 if no error, otherwise dos error code */
}